package com.bmd.backgroundmanger.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * 题目分类实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("categories")
@Schema(name = "Category", description = "题目分类实体类")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "分类ID")
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "分类描述")
    private String description;

    @Schema(description = "状态：1启用，0禁用")
    private Integer status;

    @Schema(description = "排序号")
    private Integer sortOrder;

    @Schema(description = "图标类名")
    private String icon;

    @Schema(description = "图标URL")
    private String iconUrl;

    @Schema(description = "创建人")
    private Integer createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改人")
    private Integer updateBy;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
} 